package com.zsl.model;

/**
 * 书籍表
 * 用于存放书籍的相关信息
 * 书籍属于某个类别
 */
public class Book {
    private String id;                      //书本id
    private String name;                    //书本名
    private String author;                  //书本作者
    private Float price;                    //书本价格
    private String imageName;               //图片名字
    private String description;             //书本描述
    private String category_id;             //所属目录id
    private String generate_category_name;  //目录名
    private String is_deleted;              //是否删除

    public Book() {
    }

    public Book(String id, String name, String author, Float price, String imageName, String description, String category_id) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.price = price;
        this.imageName = imageName;
        this.description = description;
        this.category_id = category_id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategory_id() {
        return category_id;
    }

    public void setCategory_id(String category_id) {
        this.category_id = category_id;
    }

    public String getGenerate_category_name() {
        return generate_category_name;
    }

    public void setGenerate_category_name(String generate_category_name) {
        this.generate_category_name = generate_category_name;
    }

    public String getIs_deleted() {
        return is_deleted;
    }

    public void setIs_deleted(String is_deleted) {
        this.is_deleted = is_deleted;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", imageName='" + imageName + '\'' +
                ", description='" + description + '\'' +
                ", category_id='" + category_id + '\'' +
                ", generate_category_name='" + generate_category_name + '\'' +
                ", is_deleted='" + is_deleted + '\'' +
                '}';
    }
}
